package com.gitee.huanminabc.shiro.service.impl;

import com.gitee.huanminabc.shiro.service.UserService;
import com.gitee.huanminabc.shiro.entity.UserEntity;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Override
    public UserEntity getUser(String account) {
        if (account.equals("admin")){
            UserEntity userEntity = new UserEntity();
            userEntity.setAccount("admin");
            userEntity.setPassword("123456");
            return userEntity;
        }
        return null;
    }

    @Override
    public List<String> getRoles(String account) {
        return null;
    }
}
